#!/usr/bin/python
# Filename: 08.py
import Image, sys, StringIO, urllib
url = 'http://www.pythonchallenge.com/pc/def/oxygen.png'
im = Image.open(StringIO.StringIO(urllib.urlopen(url).read()))
y,w = 44,im.size[0]
for x in range(0, w, 7):
	p = im.getpixel((x, y))
	if(p[0] == p[1] == p[2]):
		sys.stdout.write(chr(p[0]))
# smart guy, you made it. the next level is [105, 110, 116, 101, 103, 114, 105, 116, 121]
seq = [105, 110, 116, 101, 103, 114, 105, 116, 121]
print '\n',''.join(map(chr, seq))
# integrity

#print PIL.Image.open('oxygen.png').tostring()[108188:110620:28]